<ion-view title="入住人员">
  <ion-nav-buttons side="right">
    <button class="button no-animation button-icon icon ion-ios-search"
            ng-click="modal.show()">
    </button>
  </ion-nav-buttons>
  <ion-content overflow-scroll="true" padding="true" class="has-header">

    <!--没有数据提示-->

    <div ng-if="guests.length ==0">
      <img src="img/nodatatable.png" class="center" style="padding: 15px;margin-top: 50px">
      <h4  align="center" >暂无数据</h4>
      <h4 align="center" style="margin-top: 30px">点击右上"<i class="ion-ios-search"></i>"进行条件查询</h4>
    </div>

    <ion-list>
      <ion-item class="item-thumbnail-left" ng-repeat="guest in guests track by $index">
        <img src="img/iconfont-person.png" style="color: gainsboro">
        <h2 style="margin-top: 10px;margin-bottom: 10px">入住人:{{guest.name}}</h2>
        <h2 style="margin-top: 10px;margin-bottom: 10px">房间:{{guest.roomNo}}</h2>
        <h2 style="margin-top: 10px;margin-bottom: 10px">身份证:{{guest.idCardNo}}</h2>
        <p>入住时间:{{guest.createDate}}</p>
      </ion-item>

    </ion-list>
  </ion-content>
</ion-view>

